package com.daxt.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.FileInputStream;
import java.io.InputStream;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
//@ApiModel(value = "文件参数", description = "")
public class FileParam {
	
	//桶名称
	private String bucketName;
	//存储路径
	private String fileUrl;
	//文件流
	private InputStream inputStream;
//	//文件流
//	private FileInputStream inputStream;
	//内容类型
	private String contentType;

	public FileParam(String bucketName,String fileUrl,InputStream inputStream){
		this.bucketName = bucketName;
		this.fileUrl = fileUrl;
		this.inputStream = inputStream;
	}
	public FileParam(String bucketName,String fileUrl,InputStream inputStream,String contentType){
		this.bucketName = bucketName;
		this.fileUrl = fileUrl;
		this.inputStream = inputStream;
		this.contentType = contentType;
	}


	
}
